package fitnesshub.service;

import fitnesshub.pojo.dto.*;
import fitnesshub.pojo.entity.Member;
import fitnesshub.result.PageResult;

public interface MemberService {
    /**
     * 会员登录
     * @param memberLoginDTO
     * @return
     */
    Member login(MemberLoginDTO memberLoginDTO);

    /**
     * 获取会员信息
     *
     * @return
     */
    Member getMemberInfo(Integer memberId);

    /**
     * 购买会员
     * @param buyMemberDTO
     * @return
     */
    void buyMember(BuyMemberDTO buyMemberDTO);

    /**
     * 更新用户信息
     * @param member
     * @return
     */
    void updateMemberInfo(Member member);

    /**
     * 用户重置密码
     * @param resetPasswordDTO
     * @return
     */
    void resetPassword(ResetPasswordDTO resetPasswordDTO);

    /**
     * 注册
     * @param memberRegisterDTO
     * @return
     */
    void register(MemberRegisterDTO memberRegisterDTO);

    /**
     * 用户分页
     * @param memberPageQueryDTO
     * @return
     */
    PageResult page(MemberPageQueryDTO memberPageQueryDTO);

}
